package com.cloud.api.mock;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: weng
 * @Date: 2022/6/11
 * @Description: com.weng.cloud.service8881.mock
 */
@Data
@Builder
public class MockArgDto {

//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @JsonFormat(pattern ="yyyy-MM-dd")
    private Date date;

    private String content;

    public MockArgDto() {
    }

    public MockArgDto(Date date, String content) {
        this.date = date;
        this.content = content;
    }
}
